//
//  HomeSearchAlertTableViewCell.m
//  ZJControlsClass
//
//  Created by mac on 2024/12/6.
//

#import "HomeSearchAlertTableViewCell.h"





@implementation HomeSearchAlertTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self){
        [self coinfigUI];
    }
    return self;
}


-(void)coinfigUI{
    
    [self.contentView addSubview:self.nameLabel];
    [self.contentView addSubview:self.msgLabel];
    
    [self.nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView);
        make.top.equalTo(self.contentView).with.offset(ALIGN_HEIGHT_PT(5));
    }];
    
    [self.msgLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.nameLabel.mas_left);
        make.top.equalTo(self.nameLabel.mas_bottom);
    }];
    
    
}



#pragma mark -- 懒加载
-(UILabel *)nameLabel{
    if (!_nameLabel){
        _nameLabel = [UILabel new];
        _nameLabel.textColor = [UIColor blackColor];
        _nameLabel.font = FONT14;
        _nameLabel.textAlignment = NSTextAlignmentLeft;
    }
    return _nameLabel;
}

-(UILabel *)msgLabel{
    if (!_msgLabel){
        _msgLabel = [UILabel new];
        _msgLabel.textColor = COLOR_RGB(150, 150, 150);
        _msgLabel.textAlignment = NSTextAlignmentLeft;
        _msgLabel.font = FONT12;
    }
    return _msgLabel;
}

@end
